package org.aseclipse.ui.pde
{
    import mx.core.Container;
    import mx.core.IContainer;
    
    import org.aseclipse.core.runtime.app.IApplication;
    import org.aseclipse.core.runtime.app.IApplicationContext;
    import org.aseclipse.core.runtime.registry.IConfigurationElement;
    import org.aseclipse.core.runtime.registry.IExecutableExtension;
    import org.aseclipse.ui.pde.classes.PDEAppContainer;

    public class PDEApplication implements IApplication, IExecutableExtension
    {
        private var context:IApplicationContext;
        private var app:PDEAppContainer;
        public function PDEApplication()
        {
        }

        public function start(context:IApplicationContext):void
        {
            this.context = context;
            var par:IContainer = context.getParent();
            app = new PDEAppContainer();
            app.percentHeight = 100;
            app.percentWidth = 100;
            par.addChild(app);
        }
        
        public function stop():void
        {
            var par:IContainer = context.getParent();
            par.removeChild(app);
        }
        
        public function setInitializationData(config:IConfigurationElement, propertyName:String, data:Object):void
        {
        }
        
    }
}